﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OnlineOrder
{
    internal class User
    {
        
        private int _id;
        private string _username;
        private string _password;
        private string _name;
        private char _sex;
        private string _tele;
        private string _place;

        public User(int id, string username, string password, string name, char sex, string tele, string place)
        {
            this.Id = id;
            this.Username = username;
            this.Password = password;
            this.Name = name;
            this.Sex = sex;
            this.Tele = tele;
            this.Place = place;
        }

        public int Id { get => _id; set => _id = value; }
        public string Username { get => _username; set => _username = value; }
        public string Password { get => _password; set => _password = value; }
        public string Name { get => _name; set => _name = value; }
        public char Sex { get => _sex; set => _sex = value; }
        public string Tele { get => _tele; set => _tele = value; }
        public string Place { get => _place; set => _place = value; }
    }
}
